"use strict";
{
    let str = 'love';
    let age = 18;
    let arr;
    arr = [{ name: '张天爱', age: 32 }, { name: '徐开骋', age: 35 }];
    let nazha = {
        name: '古力娜扎',
        age: 18
    };
    let gaoshou = 68;
    //获取接口键名的联合类型
    //获取 person 对象中某个属性的值   key: 'name' | 'age'
    function getInfo(person, key) {
        return person[key];
    }
    getInfo(nazha, 'name');
}
